Skip to content

[MNT] add wheel-based dataset test to CI, closes #423#512

Closed
sohamjadhav95 wants to merge 2 commits into
dswah:mainfrom
sohamjadhav95:fix/issue-423-wheel-ci
Closed

[MNT] add wheel-based dataset test to CI, closes #423#512
sohamjadhav95 wants to merge 2 commits into
dswah:mainfrom
sohamjadhav95:fix/issue-423-wheel-ci

Conversation

@sohamjadhav95

Copy link
Copy Markdown

Closes #423

What this does

Adds a test-wheel CI job to ci.yml that:

  1. Builds the package wheel from source
  2. Installs from the wheel (not editable install)
  3. Runs pygam/tests/test_datasets.py to verify all CSV dataset loaders work from a packaged install

Why this is needed

The packaging fix was applied in #424 (**/*.csv glob in pyproject.toml) and wheel-based tests were added to pypi.yml in #425 for release time. However, the regular ci.yml test job installs with pip install -e ".[dev]" (editable mode), which reads files directly from the source tree — meaning a packaging regression would pass CI on every PR but break at release.

This PR closes the gap by catching packaging regressions on every PR, not just at release.

Testing

  • Built wheel locally and verified all 12 dataset tests pass from wheel install
  • 1 file changed, 36 insertions

@sohamjadhav95

Copy link
Copy Markdown
Author

The two failures are pre-existing and unrelated to this PR:

code-quality failed due to a transient GitHub API outage in setup-uv@v7 — re-running resolves this
test (3.12, windows-latest) is a known intermittent failure caused by Tkinter not being available on some Windows CI runners — the same failure appears in PR #253 (Dec 15) and passes on other runs like PR #415 (Mar 7)

Neither failure is introduced by this PR.

@sohamjadhav95 sohamjadhav95 closed this by deleting the head repository Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] datasets are not included in the newest pygam releases

1 participant